package 周六;

public class StringDeom {
    public static void main(String[] args) {
        String str1="Hello word";
        int a=str1.length();
        System.out.println(a);

        String str2="   Hello word   ";
        String s1=str2.trim();
        System.out.println(s1);

        String s2=str1.toLowerCase();
        System.out.println(s2);

        String str3="www.lllldjjiij.com";
        boolean bo=str3.startsWith("www.");
        System.out.println(bo);
        boolean bo1=str3.endsWith(".com");
        System.out.println(bo1);
        char cc=str3.charAt(4);
        System.out.println(cc);

        int in=str3.indexOf(".",4);
        System.out.println(in);

        String str4=str3.substring(4,14);
        System.out.println(str4);

        String str5=String.valueOf(in);
        System.out.println(str5);

    }
}
